<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>vue讲解</title>

<link href="./css/base.css" rel="stylesheet" type="text/css"/>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script src="https://cdn.staticfile.org/vue-router/2.7.0/vue-router.min.js"></script>

</head>
<body>
<div>
    <div class="row">
        <h1>父页面</h1>
        <a href="https://www.jianshu.com/p/c525aceed286">iframe通信</a>
        <a href="https://www.jianshu.com/p/93fd00167459">iframe的父子页面通信</a>
        <a href="https://blog.csdn.net/bslydhs/article/details/123473390">iframe通信</a>
        <input type="button" onclick="toA()" class="button"></input>
        <input type="button" onclick="toB()" class="button"></input>
    </div>
    
    <iframe src="./9.child.html" frameborder="1" name="chl" style="width:800px;height:600px"></iframe>
</div>

 
<script type="text/javascript">
    var toA=function(){
        chl.window.js2Foo({imgMetaId:'1111'})
    }
    var toB=function(){

    }
</script>
</body>
</html>